﻿using System;
using System.Linq;
using QLC.Modules.SCHEDULE.Components;
using ASPNETVN.PORTAL.Components.UI;

namespace QLC.Modules.SCHEDULE.Controls
{
    public partial class ItemList : ModulePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack == false)
            {
                rptItemList.DataSource = Item.SelectCollectionAll(this.ModuleID).OrderByDescending(x => x.CreatedDate);
                rptItemList.DataBind();
            }
        }
    }
}